﻿package net.nicoptere.media.video.tracker3d 
{
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	
	/**
	 * texture to be used to map objects.
	 * @author Nicolas Barradeau 
	 */
	public class Texture extends Sprite
	{
		
		private var _objectName:String;
		private var _animated:Boolean;
		
		/**
		 * 
		 * @param	content		the displayobject of the texture 
		 * @param	objectName	the reference of the object's name
		 * @param	animated	specifies if the texture is animated
		 */
		public function Texture(  objectName:String = '', content:DisplayObject = null, animated:Boolean = false ) 
		{
			
			super();
			
			addChild( content );
			
			_objectName = objectName;
			
			_animated = animated;
			
		}
		
		public function get objectName():String { return _objectName; }
		public function get animated():Boolean { return _animated; }
	}

}